package com.rzjm.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;


/**
 * 会员卡
 *
 * @author mr.zhou
 * @email zhouwei_nice@163.com
 * @date 2020-12-15 22:36:23
 */
@Data
@TableName("ck_terminals")
public class CkTerminal implements Serializable {
	private static final long serialVersionUID = 1L;

	//主键
	@TableId(type = IdType.AUTO)
	private Integer id;
	private Integer shopId;
	private String terminalNum;
	private String terminalName;
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date createTime;

	private Integer isHealth;

	private String terminalType;
	private String checkCount;
	private String checkCountUnit;

	private Integer cleanCount;
	private String cleanCountUnit;

	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date inTime;
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date outTime;
	private Integer state;
	private String qrcodeImg;
	private String specs;
	private Integer isClean;
	private Integer lastRepairRecordId;
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date lastRepairReportTime;

	private Integer isShowCheckPoint;
	private String checkPoints;

	@TableField(exist = false)
	private String shopName;

	@TableField(exist = false)
	private List<SysDict> dicts;

	@TableField(exist = false)
	private List<TerminalCheckRecord> records;
	@TableField(exist = false)
	private Integer currentHealthCount;
}
